@echo off
java com.b2j.main.Main -i%1 -o%2 -t%3
echo Compiling...
javac %2\*.java -cp %4\JDivBennu2Java.jar;%4\gdx.jar;%4\gdx-backend-lwjgl.jar;%4\gdx-backend-lwjgl-natives.jar;%4\gdx-natives.jar -d %3
echo Extracting libraries...
unzip -o %4\*.jar -d %3
echo Generating Manifest...
java com.b2j.main.GenerateManifest %3
jar cvfm %2/game.jar %3/META-INF/MANIFEST.MF -C %3/ .
if ERRORLEVEL 0 echo Done.